package com.cn.jinl.domain;

import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;

import java.util.Date;
import java.util.List;
import java.util.Map;

public class Salary {
    private String id;

    private String dutyDay;

    private String totalUserCount;

    private String totalSalary;

    private String salaryStatus;

    private String createUserId;

    private String createUserName;

    private String submitUserId;

    private String submitUserName;

    private String submitTime;

    private String sendSalaryUser;

    private String sendSalaryUserId;

    private String sendSalaryTime;

    private String status;

    private Date createTime;

    private Date updateTime;

    private String remark;

    private int count;

    public static final transient Map<String, String> STATUSMAP =
            ImmutableMap.of("0", "编制中", "1", "待发放","2","已下发");

    private List<SalaryUser> salaryUsers = Lists.newArrayList();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getDutyDay() {
        return dutyDay;
    }

    public void setDutyDay(String dutyDay) {
        this.dutyDay = dutyDay == null ? null : dutyDay.trim();
    }

    public String getTotalUserCount() {
        return totalUserCount;
    }

    public void setTotalUserCount(String totalUserCount) {
        this.totalUserCount = totalUserCount == null ? null : totalUserCount.trim();
    }

    public String getTotalSalary() {
        return totalSalary;
    }

    public void setTotalSalary(String totalSalary) {
        this.totalSalary = totalSalary == null ? null : totalSalary.trim();
    }

    public String getSalaryStatusCn() {
        return STATUSMAP.get(getSalaryStatus());
    }
    public String getSalaryStatus() {
        return salaryStatus;
    }

    public void setSalaryStatus(String salaryStatus) {
        this.salaryStatus = salaryStatus == null ? null : salaryStatus.trim();
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId == null ? null : createUserId.trim();
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName == null ? null : createUserName.trim();
    }

    public String getSubmitUserId() {
        return submitUserId;
    }

    public void setSubmitUserId(String submitUserId) {
        this.submitUserId = submitUserId == null ? null : submitUserId.trim();
    }

    public String getSubmitUserName() {
        return submitUserName;
    }

    public void setSubmitUserName(String submitUserName) {
        this.submitUserName = submitUserName == null ? null : submitUserName.trim();
    }

    public String getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(String submitTime) {
        this.submitTime = submitTime == null ? null : submitTime.trim();
    }

    public String getSendSalaryUser() {
        return sendSalaryUser;
    }

    public void setSendSalaryUser(String sendSalaryUser) {
        this.sendSalaryUser = sendSalaryUser == null ? null : sendSalaryUser.trim();
    }

    public String getSendSalaryUserId() {
        return sendSalaryUserId;
    }

    public void setSendSalaryUserId(String sendSalaryUserId) {
        this.sendSalaryUserId = sendSalaryUserId == null ? null : sendSalaryUserId.trim();
    }

    public String getSendSalaryTime() {
        return sendSalaryTime;
    }

    public void setSendSalaryTime(String sendSalaryTime) {
        this.sendSalaryTime = sendSalaryTime == null ? null : sendSalaryTime.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public List<SalaryUser> getSalaryUsers() {
        return salaryUsers;
    }

    public void setSalaryUsers(List<SalaryUser> salaryUsers) {
        this.salaryUsers = salaryUsers;
    }
}